package com.mwm.loyal.service.impl;

import com.mwm.loyal.bean.BindBean;
import com.mwm.loyal.dao.BindDao;
import com.mwm.loyal.service.BindService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("bindService")
public class BindServerImpl implements BindService {
    @Resource(name = "bindDao")
    private BindDao bindDao;

    @Override
    public int bind(BindBean bindBean) {
        return bindDao.bind(bindBean);
    }

    @Override
    public int unbind(BindBean bindBean) {
        return bindDao.unbind(bindBean);
    }
}
